package com.example.sys.model;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;
import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.userdetails.UserDetails;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.List;

@TableName("sys_user")
@Data
public class SysUser implements Serializable{

    @TableId(type = IdType.AUTO)
    private Long id ;

    private String account;

    private String userName;

    private String password;

    private String authority;

//    @TableLogic
//    private Integer delete ;

//    @TableField(fill = FieldFill.DEFAULT)
//    private Long updateId;

//    @JsonFormat(pattern = "YYYY-MM-DD HH:mm:ss")
//    @TableField(fill = FieldFill.UPDATE)
//    private LocalDateTime updateTime;
}
